﻿namespace Example.ServiceModel
{
    using System;
    using System.ServiceModel;

    public static class Program
    {
        public static void Main()
        {
            using (var serviceHost = new ServiceHost(typeof(SomethingService)))
            {
                serviceHost.Open();

                Console.WriteLine("The service is ready.");
                Console.WriteLine("Press <ENTER> to terminate service.");
                Console.Read();
            }
        }
    }
}